package com.ilibrary.constants;

/**
 * 系统常量
 * @author ZhongJiang
 *
 */

public class MyConstants {
	
	//用户登录session名
	public static final String ILIBRARY_lOGIN_USER = "ilibrary_login_user";
	//管理员登录session名
	public static final String ILIBRARY_LOGIN_ADMIN = "ilibrary_login_admin";
	
	//登录用户类型
	public static final int ILIBRARY_LOGIN_TYPE_ADMIN = 0;
	public static final int ILIBRARY_LOGIN_TYPE_STU = 1;

	//每个用户能借阅的最大图书数量
	public static final Integer USER_LOAN_BOOK_CNT_MAX = 3;	
	//图书最大借出天数
	public static final Integer BOOK_LOAN_DAY_MAX = 30;		
	//图书最大续借次数
	public static final Integer BORROW_RENEW_NUM_MAX = 1;
	
	//client端图书查询每页显示数量
	public static final Integer CLIENT_SEARCH_BOOK_PAGE_SIZE = 10;
	
	
	// JSON返回结果
	public static final int AJAX_SUCCESS = 0;
	public static final int AJAX_FAILED_ALERT = 1;
	public static final int AJAX_FAILED_REDIRECT = 2;
	public static final int AJAX_FAILED_LOGIN = 999;
}












